/*
import axios from "@/plugins/axios";
import {_axios} from "@/plugins/axios";
import Vue from "vue";
import store from '@/store/index'


Vue.prototype.$request= (url, method, params, callback) => {
    const axiosConfig= {
        url: url,
        method: method,
    }
    if(method === 'get'){

        if(params!=null){
            axiosConfig.params= params
        }
    }
    else {
        if(params!=null){
            const formData = new FormData()
            for(const key in params) {
                formData.append(key,params[key])
            }
            axiosConfig.data= formData
        }

    }
    store.commit('SET_LOADING',1)
    _axios.request(axiosConfig).then(response => {
        callback(response)

    }).catch(error => {

    }).finally(()=>{
        store.commit('SET_LOADING',0)
    })
}
*/
